import http from '@/utils/http/index';
const blogApi = {
  /**
   * @description: 获取树洞
   */
  getTreeHole(data) {
    return http.post('/treeHole/getTreeHole', data);
  },
  /**
   * @description: 添加树洞
   */
  addTreeHole(data) {
    return http.post('/treeHole/addTreeHole', data);
  },
  /**
   * @description: 获取lol台词
   */
  getFindLOL(data) {
    return http.post('/lol/findLOL', data);
  },
  /**
   * @description: 获取用户定位
   */
  getVisitor() {
    return http.get('https://api.vvhan.com/api/visitor.info');
  },
  /**
   * @description: 获取文章分类
   */
  getFindArticleType() {
    return http.get('/article/findArticleType');
  },
  /**
   * @description: 获取文章列表
   */
  getFindArticle(data) {
    return http.post('/article/findArticle', data);
  },
  /**
   * @description: 获取博客数据
   */
  getFindYxsj() {
    return http.get('/allocation/findYxsj');
  },
  /**
   * @description: 获取博客统计
   */
  getFindVisit() {
    return http.get('/other/findVisit');
  },

  // 评论
  /**
   * @description: 获取表情分类列表
   */
  getFindExpressionType() {
    return http.get('/expression/findExpressionType');
  },
  /**
   * @description: 获取表情列表
   */
  getFindExpression(data) {
    return http.post('/expression/findExpression', data);
  },
  /**
   * @description: 获取所有评论
   */
  getFindComment(data) {
    return http.post('/comment/findComment', data);
  },
  /**
   * @description: 发送评论
   */
  setAddComment(data) {
    return http.post('/comment/addComment', data);
  },
  /**
   * @description: 获取所有说说
   */
  getFindMoments(data) {
    return http.post('/moments/findMoments', data);
  },
  /**
   * @description: 点赞说说
   */
  setLikeMoments(data) {
    return http.post('/moments/likeMoments', data);
  },
  /**
   * @description: 获取打赏数据
   */
  getFindBeg(data) {
    return http.post('/beg/findBeg', data);
  },
};

export default blogApi;
